package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName inte_saleorder
 */
@TableName(value ="inte_saleorder")
public class InteSaleorder implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String ordername;

    /**
     * 
     */
    private Object goodsid;

    /**
     * 
     */
    private Object goodsnum;

    /**
     * 
     */
    private String ordertime;

    /**
     * 
     */
    private String prostartime;

    /**
     * 
     */
    private String proendtime;

    /**
     * 
     */
    private String deliverytime;

    /**
     * 销售状态 0下单 1锁单 2生产中 3完成生产 4已发货
     */
    private Object orderstate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getOrdername() {
        return ordername;
    }

    /**
     * 
     */
    public void setOrdername(String ordername) {
        this.ordername = ordername;
    }

    /**
     * 
     */
    public Object getGoodsid() {
        return goodsid;
    }

    /**
     * 
     */
    public void setGoodsid(Object goodsid) {
        this.goodsid = goodsid;
    }

    /**
     * 
     */
    public Object getGoodsnum() {
        return goodsnum;
    }

    /**
     * 
     */
    public void setGoodsnum(Object goodsnum) {
        this.goodsnum = goodsnum;
    }

    /**
     * 
     */
    public String getOrdertime() {
        return ordertime;
    }

    /**
     * 
     */
    public void setOrdertime(String ordertime) {
        this.ordertime = ordertime;
    }

    /**
     * 
     */
    public String getProstartime() {
        return prostartime;
    }

    /**
     * 
     */
    public void setProstartime(String prostartime) {
        this.prostartime = prostartime;
    }

    /**
     * 
     */
    public String getProendtime() {
        return proendtime;
    }

    /**
     * 
     */
    public void setProendtime(String proendtime) {
        this.proendtime = proendtime;
    }

    /**
     * 
     */
    public String getDeliverytime() {
        return deliverytime;
    }

    /**
     * 
     */
    public void setDeliverytime(String deliverytime) {
        this.deliverytime = deliverytime;
    }

    /**
     * 
     */
    public Object getOrderstate() {
        return orderstate;
    }

    /**
     * 
     */
    public void setOrderstate(Object orderstate) {
        this.orderstate = orderstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InteSaleorder other = (InteSaleorder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrdername() == null ? other.getOrdername() == null : this.getOrdername().equals(other.getOrdername()))
            && (this.getGoodsid() == null ? other.getGoodsid() == null : this.getGoodsid().equals(other.getGoodsid()))
            && (this.getGoodsnum() == null ? other.getGoodsnum() == null : this.getGoodsnum().equals(other.getGoodsnum()))
            && (this.getOrdertime() == null ? other.getOrdertime() == null : this.getOrdertime().equals(other.getOrdertime()))
            && (this.getProstartime() == null ? other.getProstartime() == null : this.getProstartime().equals(other.getProstartime()))
            && (this.getProendtime() == null ? other.getProendtime() == null : this.getProendtime().equals(other.getProendtime()))
            && (this.getDeliverytime() == null ? other.getDeliverytime() == null : this.getDeliverytime().equals(other.getDeliverytime()))
            && (this.getOrderstate() == null ? other.getOrderstate() == null : this.getOrderstate().equals(other.getOrderstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrdername() == null) ? 0 : getOrdername().hashCode());
        result = prime * result + ((getGoodsid() == null) ? 0 : getGoodsid().hashCode());
        result = prime * result + ((getGoodsnum() == null) ? 0 : getGoodsnum().hashCode());
        result = prime * result + ((getOrdertime() == null) ? 0 : getOrdertime().hashCode());
        result = prime * result + ((getProstartime() == null) ? 0 : getProstartime().hashCode());
        result = prime * result + ((getProendtime() == null) ? 0 : getProendtime().hashCode());
        result = prime * result + ((getDeliverytime() == null) ? 0 : getDeliverytime().hashCode());
        result = prime * result + ((getOrderstate() == null) ? 0 : getOrderstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ordername=").append(ordername);
        sb.append(", goodsid=").append(goodsid);
        sb.append(", goodsnum=").append(goodsnum);
        sb.append(", ordertime=").append(ordertime);
        sb.append(", prostartime=").append(prostartime);
        sb.append(", proendtime=").append(proendtime);
        sb.append(", deliverytime=").append(deliverytime);
        sb.append(", orderstate=").append(orderstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}